Component({
  behaviors: [getApp().globalData.behavior],
  methods: {
    onButtonClick(event) {
      const id = event.target.dataset.id

      wx.setClipboardData({
        data: this.properties.props[id],
        success(res) {
          wx.showToast({ icon: 'none', title: '复制成功~' })
        },
      });
    }
  }
});
